<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>朝闻天下前台</title>
    <link rel="icon" href="/zwtx/public/images/tx.ico" type="image/x-icon" style="width: 50px;height: 50px"/>
    
<link rel="stylesheet" href="/zwtx/Public/assets_h/stylesheets/bootstrap.min.css" media="all" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="/zwtx/Public/assets_h/stylesheets/font-awesome.css" media="all" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="/zwtx/Public/assets_h/stylesheets/se7en-font.css" media="all" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="/zwtx/Public/assets_h/stylesheets/style.css" media="all" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="/zwtx/Public/assets_h/stylesheets/theme.css" media="all" rel="stylesheet" type="text/css" />



<script src="/zwtx/Public/assets_h/javascripts/jquery.min.js" type="text/javascript"></script>
<script src="/zwtx/Public/assets_h/javascripts/jquery-ui.js" type="text/javascript"></script>
<script src="/zwtx/Public/assets_h/javascripts/bootstrap.min.js" type="text/javascript"></script>
<script src="/zwtx/Public/assets_h/javascripts/modernizr.custom.js" type="text/javascript"></script>
<script src="/zwtx/Public/assets_h/javascripts/main.js" type="text/javascript"></script>





    <link href="/zwtx/Public/assets_h/stylesheets/datepicker.css" media="all" rel="stylesheet" type="text/css"/>
    <script src="/zwtx/Public/assets_h/javascripts/jquery.bootstrap.wizard.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/fullcalendar.min.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/jquery.dataTables.min.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/jquery.easy-pie-chart.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/jquery.isotope.min.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/jquery.fancybox.pack.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/select2.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/jquery.inputmask.min.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/jquery.validate.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/bootstrap-fileupload.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/bootstrap-datepicker.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/bootstrap-timepicker.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/daterange-picker.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/date.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/jquery.sparkline.min.js" type="text/javascript"></script>
    <script src="/zwtx/Public/assets_h/javascripts/main.js" type="text/javascript"></script>

    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">

</head>
<body class="no-skin" style=";background-image:url(/zwtx/Public/images/pic/<?php echo ($upic[0][bgphoto]); ?>);;width: 100%;height: 100%;background-size: 100%">
<div class="navbar navbar-fixed-top bg-info" style="background-color:#5bc0de">
    <div class="container-fluid top-bar">
        <div class="pull-right">
<?php if(is_array($upic)): $i = 0; $__LIST__ = $upic;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><ul class="nav navbar-nav pull-right">
                <li class="dropdown user hidden-xs"><a data-toggle="dropdown" class="dropdown-toggle" href="#">
                    <img width="34" height="34" src="/zwtx/Public/images/pic/<?php echo ($vo["pic"]); ?>">
                    <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="<?php echo U('Home/UserInfo/index');?>">
                            <i class="icon-user"></i>修改个人信息</a>
                        </li>
                        <li><a href="<?php echo U('Home/ChangePassword/index');?>">
                            <i class="icon-gear"></i>修改密码</a>
                        </li>
                        <li><a href="<?php echo U('Home/Personal/fdctindex');?>">
                            <i class="icon-envelope"></i>留言板</a>
                        </li>
                        <li><a href="<?php echo U('Home/Login/index');?>">
                            <i class="icon-signout"></i>退出登录</a>
                        </li>

                    </ul>
                </li>

            </ul><?php endforeach; endif; else: echo "" ;endif; ?>
        </div>

    </div>

</div>

<div id="wrap" style=";margin-bottom: 60px">
    <div class="container-fluid">

        <div class="col-md-10 col-md-offset-1 " style="margin-bottom: 30px">
            <h2 style="color: #56abe4; margin-bottom: 0px;padding-bottom: 0px;">
                <p class="" style="font-weight:bold;margin-bottom: 10px;margin-top: 10px;font-size: 30px">个人中心</p>
            </h2>
            <hr>
        </div>
        <span style="display: none"><?php echo ($upic[0]['username']); ?></span>
        <div class="col-md-6 col-md-offset-3  " style="border: solid 1px #60ffc8;border-radius: 5%;">
            <form method=post action="<?php echo U('Personal/search');?>" enctype="multipart/form-data"class="form-horizontal" style="margin-top: 1%;width: 30%">
                <div class="form-group col-md-12" >
                    <div class="col-md-10" style="margin-right: 0px;padding-right: 0px">
                        <input type="search" name="text" results=s style="float: right" class="form-control" id="title" placeholder="请输入标题搜索" required>
                    </div>
                </div>
            </form>
            <table class="table " style="border: none;margin-top: 5%">
                <thead >
                <tr >
                    <th style="text-align: center">序号</th>
                    <th style="text-align: center">类别名</th>
                    <th style="text-align: center">标题</th>
                    <th style="text-align: center">新闻图片</th>
                    <th style="text-align: center">操作</th>
                </tr>
                </thead>
                <tbody>
                <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
                        <td style="font-size: larger;color: #4f4f4f;text-align: center"><?php echo ($vo['code']); ?></td>
                        <td style="color: #4f4f4f;text-align: center"><?php echo ($vo['tid']); ?></td>
                        <td style="color: #4f4f4f;text-align: center"><?php echo ($vo['title']); ?></td>
                        <td style="text-align: center" >
                            <a href="<?php echo U('Personal/detail');?>?id=<?php echo ($vo['id']); ?>" >
                                <img src="/zwtx/Public/images/pic/<?php echo ($vo["n_pic"]); ?>" style="border-radius:50% ; width:50px;height: 50px;" alt="空">
                            </a>
                        </td>

                        <td style="fontcolor:aqua;color: #21e1d8;text-align: center">
                            <a href="<?php echo U('Personal/del');?>?id=<?php echo ($vo['id']); ?>"onClick="return confirm('确定要删除吗？')" >
                                <img src="/zwtx/Public/images/delete.png" width="20" height="20"></a>
                        </td>
                    </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                </tbody>
            </table>
        </div>

        <div class="row">
            <div class="col-md-3"></div>
            <div class="col-md-4 col-md-offset-1" style="margin-top: 5%;text-align: center">
                <a href="<?php echo U('Index/index');?>" >
                    <img src="/zwtx/Public/images/back.png" width="40" height="40" style="margin-top: 2%;">
                </a>
                <a  class="modelshow"  href="javascript:;">
                    <button type="button" class="btn btn-info" style="margin-left: 5%;margin-top: 2%;">设置壁纸</button>
                </a>
                <a href="<?php echo U('Fourm/index');?>" >
                    <button type="button" class="btn btn-success" style="margin-top: 2%;">论坛</button>
                </a>
                <a href="<?php echo U('Personal/delphoto');?>" onClick="return confirm('确定要清空壁纸吗？')">
                    <button type="button" class="btn btn-danger" style="margin-top: 2%;">清空壁纸</button>
                </a>

            </div>
        </div>
        <script>
            $('.modelshow').click(function (){
                $('#myModal').modal('show');
            })
        </script>
        <div class="modal fade bs-example-modal-sm" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true" style="margin-top: 8%">
    <div class="modal-sm"  style="z-index: 1050; width: auto;padding: 10px;margin-right: auto;margin-left: auto;right: auto;left: 50%;width: 600px;padding-top: 30px;padding-bottom: 30px;">
        <div class="modal-content" style="border-radius: 5px;">
            <div class="modal-header"
                 style="padding-bottom:0px; border-bottom:0px;padding-left:0px;padding-right:0px;background-color: #ffffff">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close" style="height:50px;">
                    <span class=""
                          style="height:50px;padding:10px 40px 10px 0px;background-image: url('/zwtx/Public/assets_h/images/modal_close.png') ;background-size:100%;background-repeat: no-repeat"></span>
                </button>
                <div class="container-fluid">
                    <div class="row" style="margin-top: 5%">
                        <div class="col-md-12  col-xs-12 col-sm-12 col-sm-offset-0 col-md-offset-0 col-xs-offset-0"
                             style="margin-bottom: 0px">
                            <div class="col-md-6 col-xs-6 col-sm-6  col-md-offset-3 col-sm-offset-3 col-xs-offset-3">
                                <h2 style="font-family: 楷体;text-align: center;margin-bottom: 0px ">更换壁纸</h2>
                            </div>

                        </div>
                    </div>

                </div>
                <form  method="post" id="mjkn"  action="<?php echo U('Personal/addphoto');?>" enctype="multipart/form-data"class="form-horizontal">
                    <div class="modal-body" style="padding-bottom:0px;background-color:white;">
                        <div class="container-fluid" style="width: 100%">
                            <div class="row" style="width: 100%">
                                <div class="col-md-12  col-xs-12 col-sm-12 col-sm-offset-0 col-md-offset-0 col-xs-offset-0"
                                     style="width: 100%" >
                                    <div class="col-md-6  col-xs-6 col-sm-6 col-sm-offset-0 col-md-offset-0 col-xs-offset-0"
                                         style="width: 100%" id="modalMessage">
          <!--<input style="font-family: 楷体;font-size: larger;margin-top: 2%" type="file" name="bgphoto" id="exampleInputFile" required>-->
                                        <div class="row" style="margin-top: 2%">
                                            <div class=" col-md-6 col-md-offset-4">
                                                <div class="fileupload fileupload-new" data-provides="fileupload" style="">
                                                    <input type="hidden" value="" name="bgphoto" >
                                                    <div class="fileupload-new img-thumbnail"
                                                         style="width: 110px; height: 110px;background-color:#5f5f5f">
                                                        <img src="">
                                                    </div>
                                                    <div class="fileupload-preview fileupload-exists img-thumbnail"
                                                         style="width: 110px; max-height: 110px;"></div>
                          <span class="btn btn-default btn-file">
                        <span class="fileupload-new">选择</span>
                        <span class="fileupload-exists">重选</span><input type="file" name="bgphoto" required>
                        </span>
                          <span>
                        <a class="btn btn-default fileupload-exists" data-dismiss="fileupload"
                           href="#">撤销</a>
                        </span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>
                    <div class="modal-footer" style="background-color: #02baf0">
                        <div class="container-fluid">

                            <div class="row" style="padding-top: 15px ">
                                <div class="col-xs-6 col-xs-offset-3 col-sm-offset-0 col-md-offset-3  col-md-6">
                                    <input type="submit" class=" btn-block btn btn-primary" id="modalButton" value="确   定" style="">

                                </div>
                            </div>
                        </div>
                    </div>
                </form>

            </div>


        </div>
    </div>
</div>

    </div>
</div>
</body>
</html>